package com.nzw.pojo.order;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * create 2018-3-7
 * by yinwx
 * 订单详情实体类
 *
 */

@Table(name="t_order_detail")
public class OrderDetail implements Serializable{
	
	private Long id;				//id
	private Long orderId;			//订单id
	private Integer detailTotle;	//订单详情总共积分
	private Integer number;			//商品数量
	private Long commodityId;		//商品id
	private Integer price;			//商品单价
	private String title;			//商品标题
	private String image;			//商品图片



	@Column(name = "price")
	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	@Column(name="number")
	public Integer getNumber() {
		return number;
	}
	
	public void setNumber(Integer number) {
		this.number = number;
	}
	
	
	@Column(name="id")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="orderId")
	public Long getOrderId() {
		return orderId;
	}
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}


	@Column(name = "detailTotle")
	public Integer getDetailTotle() {
		return detailTotle;
	}

	public void setDetailTotle(Integer detailTotle) {
		this.detailTotle = detailTotle;
	}


	@Column(name = "commodityId")
	public Long getCommodityId() {
		return commodityId;
	}

	public void setCommodityId(Long commodityId) {
		this.commodityId = commodityId;
	}


	@Column(name = "title")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "image")
	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	@Override
	public String toString() {
		return "OrderDetail{" +
				"id=" + id +
				", orderId=" + orderId +
				", detailTotle=" + detailTotle +
				", number=" + number +
				", commodityId=" + commodityId +
				'}';
	}
}
